package com.hoopeu.entity;

import java.io.Serializable;

import android.util.Log;

public class UserData
  implements Serializable
{
  private static final long serialVersionUID = -7060210544600464481L;
  private String hostAddress;
  private String hostId;
  private String hostIp;
  private int hostPort;
  private int id;
  private boolean isDataSync = false;
  private boolean isLoginAuto = false; 
  private String nickName;
  private String password = "";
  private String picturePath = "";

  public String getHostAddress()
  {
    return this.hostAddress;
  }

  public String getHostId()
  {
    return this.hostId;
  }

  public String getHostIp()
  {
    return this.hostIp;
  }

  public int getHostPort()
  {
    return this.hostPort;
  }

  public int getId()
  {
    return this.id;
  }

  public String getNickName()
  {
    return this.nickName;
  }

  public String getPassword()
  {
    return this.password;
  }

  public String getPicturePath()
  {
    return this.picturePath;
  }

  public boolean isDataSync()
  {
    return this.isDataSync;
  }

  public boolean isLoginAuto()
  {
    return this.isLoginAuto;
  }

  public void setDataSync(boolean paramBoolean)
  {
    this.isDataSync = paramBoolean;
  }

  public void setHostAddress(String paramString)
  {
    this.hostAddress = paramString;
  }

  public void setHostId(String paramString)
  {
    this.hostId = paramString;
  }

  public void setHostIp(String paramString)
  {
    this.hostIp = paramString;
  }

  public void setHostPort(int paramInt)
  {
    this.hostPort = paramInt;
  }

  public void setId(int paramInt)
  {
    this.id = paramInt;
  }

  public void setNickName(String paramString)
  {
    this.nickName = paramString;
  }

  public void setPassword(String paramString)
  {
    this.password = paramString;
  }

  public void setPicturePath(String paramString)
  {
    this.picturePath = paramString;
  }

  public void setLoginType(boolean _isLoginAuto)
  {
	  Log.i("UserData-setLoginType", _isLoginAuto+"");
    this.isLoginAuto = _isLoginAuto;
  }
  
  public boolean isEqualTo(UserData data)
  {
	  return this.hostId.equals(data.hostId)?true:false;
  }
}